package com.lbn.monitor.api;

import com.free.framework.lib.network.APIServiceFactory;
import com.free.framework.lib.network.Retrofit2Host;

/**
 * Created by 李炳南
 * 2017/3/7.
 */

public class AppHost implements Retrofit2Host {

    private static AppHost host;

    @Override
    public String getHost() {
        return "http://114.215.110.26/";
    }

//    @Override
//    public String getHost() {
//        return "http://192.168.1.106:8888/";
//    }

    public static ApiService getApi() {

        if (host == null) {
            host = new AppHost();
        }
        return APIServiceFactory.createAPIService(host, ApiService.class);
    }


}
